<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">URL美化</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li><a href="{:url('route/index')}">URL美化</a></li>
                                <li><a href="{:url('route/add')}">添加URL规则</a></li>
                                <li class="layui-this"><a href="{:url('route/edit')}">编辑URL规则</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="layui-form js-ajax-form" action="{:url('route/editPost')}">
                                        <div class="layui-form-item">
                                            <label for="input-full_url" class="layui-form-label">原始网址<span style="color:#FF5722;">*</span></label>
                                            <div class="layui-input-block">
                                                <input type="text" style="width:500px;" class="layui-input layui-input-inline" id="input-full_url" name="full_url" value="{$full_url}"> <a class="layui-inline layui-btn" href="javascript:doSelectUrl();">选择规则</a>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-url" class="layui-form-label">显示网址<span style="color:#FF5722;">*</span></label>
                                            <div class="layui-input-block">
                                                <input style="width:500px;" type="text" class="layui-input layui-input-inline" id="input-url" name="url" value="{$url}">
                                                <p class="layui-word-aux"><span id="url-vars"></span> url格式一般为[list/:param1/:param2或 list-&lt;param1&gt;-&lt;param2&gt;]
                                                </p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-status" class="layui-form-label">是否启用</label>
                                            <div style="width:500px;" class="layui-input-block">
                                                <select name="status" id="input-status" class="layui-input-inline">
                                                    <option value="1" {$status==1?'':'selected'}>启用</option>
                                                    <option value="0" {$status==1?'':'selected'}>禁用</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-layout-admin">
                                            <div class="layui-input-block">
                                                <div class="layui-footer" style="left:0;">
                                                    <input type="hidden" name="id" value="{$id}">
                                                    <button lay-submit class="layui-btn js-ajax-submit">{:lang('SAVE')}</button>
                                                    <a href="{:url('route/index')}" class="layui-btn layui-btn-primary js-ajax-submit">{:lang('BACK')}</a>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>